<%@page import="com.neiquan.backstage.pub.bsc.dao.po.SceneVisitReservation"%>
<%@page import="com.neiquan.backstage.scene_visit_reservation.SceneVisitReservationService"%>
<%@page import="com.neiquan.backstage.pub.bsc.dao.po.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>会议室预约详情</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<link rel="stylesheet" href="css/base.css" />
	<link rel="stylesheet" href="css/main.css" />
</head>
<body bgcolor="#f0f0f0" id="app" ng-app="app" ng-controller="ctrl">
	<section class="mt activesignup">
		<section class="tc">
				<section>
					<p class="addrvisitor-title pd">预约信息</p>
					<section class="line"></section>
					<section class="common_bg">
						<section class="perfect pd">
						<p class="form-inpt-p">
							<label>公司名称</label>
							<input class="inpt" readonly="readonly" required ng-model="response.entrepreneurName" name="peopleCount" type="text" />
						</p>
						<p class="form-inpt-p">
							<label>联系人</label>
							<input class="inpt" readonly="readonly" required ng-model="response.name" name="peopleCount" type="text" />
						</p>
						<p class="form-inpt-p">
							<label>联系电话</label>
							<input class="inpt" readonly="readonly" required ng-model="response.phone" name="peopleCount" type="text" />
						</p>
						<p class="form-inpt-p">
							<label>预约地点</label>
							<input class="inpt" readonly="readonly" required ng-model="response.meetingRoomName" name="peopleCount" type="text" />
						</p>
						<p class="form-inpt-p">
							<label>预约时间<small>(年-月-日 时间段)</small></label>
							<input class="inpt" readonly="readonly" required ng-model="response.time" name="peopleCount" type="text" />
						</p>
						</section>
					</section>
				</section>
		</section>
	</section>
	</body>
		<script src="js/jquery.min.js"></script>
		<script src="angular-1.5.0-rc.2/angular.js"></script>
		<script src="js/main.js"></script>
		<script src="js/jquery.min.js"></script>		
		<script src="js/responsive.js"></script>
		<script>
	var app = angular.module("app", []);
	app.controller('ctrl', function($scope, $http, $httpParamSerializer, $injector, $window) {
		
		$scope.queryDetail = function() {
			var reqDate = jQuery.param({
				"id": '${param.id}'
			});
			var reqConfig = { headers: { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"} };
			$http.post(
				"api/meetingOrderAction/queryDetail", reqDate, reqConfig
			).success(function(data, status) {
				if (data.code != 0) {
					alert(data.errorMessage);
					return;
				}
				$scope.response = data.response;
			}).error(function(data, status) {
				alert(status);
			});
		}
		
		$scope.queryDetail();
	});
	</script>
</html>
